package com.flainsky.nirvanaplayer;

import com.flainsky.nirvanaplayer.globe.Env;

public class BaseValue {
	public static BaseValue instance;
	private Env env;
	private String URN;
	private String SERVICE_ADDR;
	
	
	public static BaseValue getInstance() {
		if(instance!=null){
			return instance;
		}
		else{
			makeInstance();
			return instance;
		}
	}
	
	public static synchronized void makeInstance(){
		if(instance==null){
			instance=new BaseValue();
		}
	}
	
	private BaseValue()
	{
		env = Env.getInstance();
		URN = env.getValue(R.string.serviceunr);
		SERVICE_ADDR = env.getServiceAddress();
	}
	
	public String getURN()
	{
		return URN;
	}
	public String getServiceAddress()
	{
		return SERVICE_ADDR;
	}
}
